/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.scote.base.model;

/**
 *
 * @author YanPeng
 */
public class PageInfo {

    private int page = 1;//pageNow
    private int rows = 10;//pageSize
    private String order = "desc";
    private String sort = "id";
    private int rowSum = 0;
    private int startRow = 0;
    private int endRow = 0;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public int getRowSum() {
        return rowSum;
    }

    public void setRowSum(int rowSum) {
        this.rowSum = rowSum;
    }

    public int getStartRow() {
        return (page - 1) * rows;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }

    public int getEndRow() {
        return page * rows;
    }

    public void setEndRow(int endRow) {
        this.endRow = endRow;
    }
}
